package com.dyh.quickdemo.demos.d1222lbd;

import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/*
@Author=Joey Wheeler
@Date=2020/12/22 17:38
*/
public class AisatsuServiceCenter {

    @Autowired
    public DDservice dDservice;

    public static List<AisatsuService> services = new ArrayList<>();



    public void hi(String str){
        for (AisatsuService service : services) {
            if (service.match(str)){
                service.hi(str+dDservice.dd());
                break;
            }
        }
    }
}
